home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / websrvcs / nsIGenericInterfaceInfoSet.h next >
C/C++ Source or Header  |  2006-05-08  |  11KB  |  267 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIGenericInterfaceInfoSet.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIGenericInterfaceInfoSet_h__
  6. #define __gen_nsIGenericInterfaceInfoSet_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. #ifndef __gen_nsIInterfaceInfo_h__
  14. #include "nsIInterfaceInfo.h"
  15. #endif
  16.  
  17. #ifndef __gen_nsIInterfaceInfoManager_h__
  18. #include "nsIInterfaceInfoManager.h"
  19. #endif
  20.  
  21. /* For IDL files that don't want to include root IDL files. */
  22. #ifndef NS_NO_VTABLE
  23. #define NS_NO_VTABLE
  24. #endif
  25.  
  26. /* starting interface:    nsIGenericInterfaceInfo */
  27. #define NS_IGENERICINTERFACEINFO_IID_STR "8344a200-18ed-4538-8d44-e50b5156b564"
  28.  
  29. #define NS_IGENERICINTERFACEINFO_IID \
  30.   {0x8344a200, 0x18ed, 0x4538, \
  31.     { 0x8d, 0x44, 0xe5, 0x0b, 0x51, 0x56, 0xb5, 0x64 }}
  32.  
  33. class NS_NO_VTABLE nsIGenericInterfaceInfo : public nsIInterfaceInfo {
  34.  public: 
  35.  
  36.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IGENERICINTERFACEINFO_IID)
  37.  
  38.   /**
  39.     * All members except params* and result* copied
  40.     */
  41.   /* PRUint16 appendMethod (in XPTMethodDescriptorPtr aMethod); */
  42.   NS_IMETHOD AppendMethod(XPTMethodDescriptor * aMethod, PRUint16 *_retval) = 0;
  43.  
  44.   /**
  45.     * All members copied
  46.     */
  47.   /* PRUint16 appendConst (in XPTConstDescriptorPtr aConst); */
  48.   NS_IMETHOD AppendConst(XPTConstDescriptor * aConst, PRUint16 *_retval) = 0;
  49.  
  50. };
  51.  
  52. /* Use this macro when declaring classes that implement this interface. */
  53. #define NS_DECL_NSIGENERICINTERFACEINFO \
  54.   NS_IMETHOD AppendMethod(XPTMethodDescriptor * aMethod, PRUint16 *_retval); \
  55.   NS_IMETHOD AppendConst(XPTConstDescriptor * aConst, PRUint16 *_retval); 
  56.  
  57. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  58. #define NS_FORWARD_NSIGENERICINTERFACEINFO(_to) \
  59.   NS_IMETHOD AppendMethod(XPTMethodDescriptor * aMethod, PRUint16 *_retval) { return _to AppendMethod(aMethod, _retval); } \
  60.   NS_IMETHOD AppendConst(XPTConstDescriptor * aConst, PRUint16 *_retval) { return _to AppendConst(aConst, _retval); } 
  61.  
  62. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  63. #define NS_FORWARD_SAFE_NSIGENERICINTERFACEINFO(_to) \
  64.   NS_IMETHOD AppendMethod(XPTMethodDescriptor * aMethod, PRUint16 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->AppendMethod(aMethod, _retval); } \
  65.   NS_IMETHOD AppendConst(XPTConstDescriptor * aConst, PRUint16 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->AppendConst(aConst, _retval); } 
  66.  
  67. #if 0
  68. /* Use the code below as a template for the implementation class for this interface. */
  69.  
  70. /* Header file */
  71. class nsGenericInterfaceInfo : public nsIGenericInterfaceInfo
  72. {
  73. public:
  74.   NS_DECL_ISUPPORTS
  75.   NS_DECL_NSIGENERICINTERFACEINFO
  76.  
  77.   nsGenericInterfaceInfo();
  78.  
  79. private:
  80.   ~nsGenericInterfaceInfo();
  81.  
  82. protected:
  83.   /* additional members */
  84. };
  85.  
  86. /* Implementation file */
  87. NS_IMPL_ISUPPORTS1(nsGenericInterfaceInfo, nsIGenericInterfaceInfo)
  88.  
  89. nsGenericInterfaceInfo::nsGenericInterfaceInfo()
  90. {
  91.   /* member initializers and constructor code */
  92. }
  93.  
  94. nsGenericInterfaceInfo::~nsGenericInterfaceInfo()
  95. {
  96.   /* destructor code */
  97. }
  98.  
  99. /* PRUint16 appendMethod (in XPTMethodDescriptorPtr aMethod); */
  100. NS_IMETHODIMP nsGenericInterfaceInfo::AppendMethod(XPTMethodDescriptor * aMethod, PRUint16 *_retval)
  101. {
  102.     return NS_ERROR_NOT_IMPLEMENTED;
  103. }
  104.  
  105. /* PRUint16 appendConst (in XPTConstDescriptorPtr aConst); */
  106. NS_IMETHODIMP nsGenericInterfaceInfo::AppendConst(XPTConstDescriptor * aConst, PRUint16 *_retval)
  107. {
  108.     return NS_ERROR_NOT_IMPLEMENTED;
  109. }
  110.  
  111. /* End of implementation class template. */
  112. #endif
  113.  
  114.  
  115. /* starting interface:    nsIGenericInterfaceInfoSet */
  116. #define NS_IGENERICINTERFACEINFOSET_IID_STR "8cc674ee-52ba-45fa-b897-bb88d35eaa91"
  117.  
  118. #define NS_IGENERICINTERFACEINFOSET_IID \
  119.   {0x8cc674ee, 0x52ba, 0x45fa, \
  120.     { 0xb8, 0x97, 0xbb, 0x88, 0xd3, 0x5e, 0xaa, 0x91 }}
  121.  
  122. class NS_NO_VTABLE nsIGenericInterfaceInfoSet : public nsIInterfaceInfoManager {
  123.  public: 
  124.  
  125.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IGENERICINTERFACEINFOSET_IID)
  126.  
  127.   /**
  128.     * Methods include pointers to param arrays allocated here.
  129.     */
  130.   /* XPTParamDescriptorPtr allocateParamArray (in PRUint16 aCount); */
  131.   NS_IMETHOD AllocateParamArray(PRUint16 aCount, XPTParamDescriptor * *_retval) = 0;
  132.  
  133.   /**
  134.     * Used for type that is in an array.
  135.     */
  136.   /* XPTTypeDescriptorPtr allocateAdditionalType (out PRUint16 aIndex); */
  137.   NS_IMETHOD AllocateAdditionalType(PRUint16 *aIndex, XPTTypeDescriptor * *_retval) = 0;
  138.  
  139.   /* PRUint16 createAndAppendInterface (in string aName, in nsIIDRef aIID, in PRUint16 aParent, in PRUint8 aFlags, out nsIGenericInterfaceInfo aInfo); */
  140.   NS_IMETHOD CreateAndAppendInterface(const char *aName, const nsIID & aIID, PRUint16 aParent, PRUint8 aFlags, nsIGenericInterfaceInfo **aInfo, PRUint16 *_retval) = 0;
  141.  
  142.   /* PRUint16 appendExternalInterface (in nsIInterfaceInfo aInfo); */
  143.   NS_IMETHOD AppendExternalInterface(nsIInterfaceInfo *aInfo, PRUint16 *_retval) = 0;
  144.  
  145.   /* PRUint16 indexOf (in nsIIDRef aIID); */
  146.   NS_IMETHOD IndexOf(const nsIID & aIID, PRUint16 *_retval) = 0;
  147.  
  148.   /* PRUint16 indexOfByName (in string aName); */
  149.   NS_IMETHOD IndexOfByName(const char *aName, PRUint16 *_retval) = 0;
  150.  
  151.   /* nsIInterfaceInfo interfaceInfoAt (in PRUint16 aIndex); */
  152.   NS_IMETHOD InterfaceInfoAt(PRUint16 aIndex, nsIInterfaceInfo **_retval) = 0;
  153.  
  154. };
  155.  
  156. /* Use this macro when declaring classes that implement this interface. */
  157. #define NS_DECL_NSIGENERICINTERFACEINFOSET \
  158.   NS_IMETHOD AllocateParamArray(PRUint16 aCount, XPTParamDescriptor * *_retval); \
  159.   NS_IMETHOD AllocateAdditionalType(PRUint16 *aIndex, XPTTypeDescriptor * *_retval); \
  160.   NS_IMETHOD CreateAndAppendInterface(const char *aName, const nsIID & aIID, PRUint16 aParent, PRUint8 aFlags, nsIGenericInterfaceInfo **aInfo, PRUint16 *_retval); \
  161.   NS_IMETHOD AppendExternalInterface(nsIInterfaceInfo *aInfo, PRUint16 *_retval); \
  162.   NS_IMETHOD IndexOf(const nsIID & aIID, PRUint16 *_retval); \
  163.   NS_IMETHOD IndexOfByName(const char *aName, PRUint16 *_retval); \
  164.   NS_IMETHOD InterfaceInfoAt(PRUint16 aIndex, nsIInterfaceInfo **_retval); 
  165.  
  166. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  167. #define NS_FORWARD_NSIGENERICINTERFACEINFOSET(_to) \
  168.   NS_IMETHOD AllocateParamArray(PRUint16 aCount, XPTParamDescriptor * *_retval) { return _to AllocateParamArray(aCount, _retval); } \
  169.   NS_IMETHOD AllocateAdditionalType(PRUint16 *aIndex, XPTTypeDescriptor * *_retval) { return _to AllocateAdditionalType(aIndex, _retval); } \
  170.   NS_IMETHOD CreateAndAppendInterface(const char *aName, const nsIID & aIID, PRUint16 aParent, PRUint8 aFlags, nsIGenericInterfaceInfo **aInfo, PRUint16 *_retval) { return _to CreateAndAppendInterface(aName, aIID, aParent, aFlags, aInfo, _retval); } \
  171.   NS_IMETHOD AppendExternalInterface(nsIInterfaceInfo *aInfo, PRUint16 *_retval) { return _to AppendExternalInterface(aInfo, _retval); } \
  172.   NS_IMETHOD IndexOf(const nsIID & aIID, PRUint16 *_retval) { return _to IndexOf(aIID, _retval); } \
  173.   NS_IMETHOD IndexOfByName(const char *aName, PRUint16 *_retval) { return _to IndexOfByName(aName, _retval); } \
  174.   NS_IMETHOD InterfaceInfoAt(PRUint16 aIndex, nsIInterfaceInfo **_retval) { return _to InterfaceInfoAt(aIndex, _retval); } 
  175.  
  176. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  177. #define NS_FORWARD_SAFE_NSIGENERICINTERFACEINFOSET(_to) \
  178.   NS_IMETHOD AllocateParamArray(PRUint16 aCount, XPTParamDescriptor * *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->AllocateParamArray(aCount, _retval); } \
  179.   NS_IMETHOD AllocateAdditionalType(PRUint16 *aIndex, XPTTypeDescriptor * *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->AllocateAdditionalType(aIndex, _retval); } \
  180.   NS_IMETHOD CreateAndAppendInterface(const char *aName, const nsIID & aIID, PRUint16 aParent, PRUint8 aFlags, nsIGenericInterfaceInfo **aInfo, PRUint16 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateAndAppendInterface(aName, aIID, aParent, aFlags, aInfo, _retval); } \
  181.   NS_IMETHOD AppendExternalInterface(nsIInterfaceInfo *aInfo, PRUint16 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->AppendExternalInterface(aInfo, _retval); } \
  182.   NS_IMETHOD IndexOf(const nsIID & aIID, PRUint16 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->IndexOf(aIID, _retval); } \
  183.   NS_IMETHOD IndexOfByName(const char *aName, PRUint16 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->IndexOfByName(aName, _retval); } \
  184.   NS_IMETHOD InterfaceInfoAt(PRUint16 aIndex, nsIInterfaceInfo **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->InterfaceInfoAt(aIndex, _retval); } 
  185.  
  186. #if 0
  187. /* Use the code below as a template for the implementation class for this interface. */
  188.  
  189. /* Header file */
  190. class nsGenericInterfaceInfoSet : public nsIGenericInterfaceInfoSet
  191. {
  192. public:
  193.   NS_DECL_ISUPPORTS
  194.   NS_DECL_NSIGENERICINTERFACEINFOSET
  195.  
  196.   nsGenericInterfaceInfoSet();
  197.  
  198. private:
  199.   ~nsGenericInterfaceInfoSet();
  200.  
  201. protected:
  202.   /* additional members */
  203. };
  204.  
  205. /* Implementation file */
  206. NS_IMPL_ISUPPORTS1(nsGenericInterfaceInfoSet, nsIGenericInterfaceInfoSet)
  207.  
  208. nsGenericInterfaceInfoSet::nsGenericInterfaceInfoSet()
  209. {
  210.   /* member initializers and constructor code */
  211. }
  212.  
  213. nsGenericInterfaceInfoSet::~nsGenericInterfaceInfoSet()
  214. {
  215.   /* destructor code */
  216. }
  217.  
  218. /* XPTParamDescriptorPtr allocateParamArray (in PRUint16 aCount); */
  219. NS_IMETHODIMP nsGenericInterfaceInfoSet::AllocateParamArray(PRUint16 aCount, XPTParamDescriptor * *_retval)
  220. {
  221.     return NS_ERROR_NOT_IMPLEMENTED;
  222. }
  223.  
  224. /* XPTTypeDescriptorPtr allocateAdditionalType (out PRUint16 aIndex); */
  225. NS_IMETHODIMP nsGenericInterfaceInfoSet::AllocateAdditionalType(PRUint16 *aIndex, XPTTypeDescriptor * *_retval)
  226. {
  227.     return NS_ERROR_NOT_IMPLEMENTED;
  228. }
  229.  
  230. /* PRUint16 createAndAppendInterface (in string aName, in nsIIDRef aIID, in PRUint16 aParent, in PRUint8 aFlags, out nsIGenericInterfaceInfo aInfo); */
  231. NS_IMETHODIMP nsGenericInterfaceInfoSet::CreateAndAppendInterface(const char *aName, const nsIID & aIID, PRUint16 aParent, PRUint8 aFlags, nsIGenericInterfaceInfo **aInfo, PRUint16 *_retval)
  232. {
  233.     return NS_ERROR_NOT_IMPLEMENTED;
  234. }
  235.  
  236. /* PRUint16 appendExternalInterface (in nsIInterfaceInfo aInfo); */
  237. NS_IMETHODIMP nsGenericInterfaceInfoSet::AppendExternalInterface(nsIInterfaceInfo *aInfo, PRUint16 *_retval)
  238. {
  239.     return NS_ERROR_NOT_IMPLEMENTED;
  240. }
  241.  
  242. /* PRUint16 indexOf (in nsIIDRef aIID); */
  243. NS_IMETHODIMP nsGenericInterfaceInfoSet::IndexOf(const nsIID & aIID, PRUint16 *_retval)
  244. {
  245.     return NS_ERROR_NOT_IMPLEMENTED;
  246. }
  247.  
  248. /* PRUint16 indexOfByName (in string aName); */
  249. NS_IMETHODIMP nsGenericInterfaceInfoSet::IndexOfByName(const char *aName, PRUint16 *_retval)
  250. {
  251.     return NS_ERROR_NOT_IMPLEMENTED;
  252. }
  253.  
  254. /* nsIInterfaceInfo interfaceInfoAt (in PRUint16 aIndex); */
  255. NS_IMETHODIMP nsGenericInterfaceInfoSet::InterfaceInfoAt(PRUint16 aIndex, nsIInterfaceInfo **_retval)
  256. {
  257.     return NS_ERROR_NOT_IMPLEMENTED;
  258. }
  259.  
  260. /* End of implementation class template. */
  261. #endif
  262.  
  263. // The contractID for the implementation built into iiextras
  264. #define NS_GENERIC_INTERFACE_INFO_SET_CONTRACTID "@mozilla.org/genericInterfaceInfoSet;1"
  265.  
  266. #endif /* __gen_nsIGenericInterfaceInfoSet_h__ */
  267.